#define _CRT_SECURE_NO_WARNINGS 1

#include <stdio.h>

int main() {
	int a, b, c, cup;

	scanf("%d %d %d", &a, &b, &c);

	if (a < b) {
		cup = a;
		a = b;
		b = cup;
	}
	if (a < c) {
		cup = a;
		a = c;
		c = cup;
	}
	if (b < c) {
		cup = b;
		b = c;
		c = cup;
	}

	printf("%d %d %d", a, b, c);

	return 0;
}